import request from "@/router/axios";

export const getBrandList = (params) => {
  return request({
    url: "/admin/brand/pageList",
    method: "get",
    params: { ...params },
  });
};

export const getAllBrandList = (params) => {
  return request({
    url: "/admin/brand/listAll",
    method: "get",
    params: { ...params },
  });
};


export const updateBrandItem = (row) => {
  return request({
    url: "/admin/brand/save",
    method: "post",
    data: row,
  });
};

export const delBrandItem = (row) => {
  return request({
    url: "/admin/brand/delete",
    method: "post",
    data: row,
  });
};

export const sortBrandItem = (row) => {
  return request({
    url: "/admin/brand/sort",
    method: "post",
    data: row,
  });
};

export const setBrandItemStatus = (row) => {
  return request({
    url: "/admin/brand/setStatus",
    method: "post",
    data: row,
  });
};

export const setBrandItemRecommend = (row) => {
  return request({
    url: "/admin/brand/recommend",
    method: "post",
    data: row,
  });
};